package com.kaifa.test;

public class WhileDemo {
    public static void main(String[] args) {
        int i = 5;
        while (i<8){
            i++;
            System.out.println("while循环"+i);
        }
        System.out.println("while循环结束，i的值为"+i);

        do{
            i++;
            System.out.println("do-while循环"+i);
        }while (i<=8);
    }
}
